﻿<UserControl x:Class="StrategyMap.UserControls.Node1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="80" d:DesignWidth="160">

    <Canvas x:Name="NodeLayoutRoot" Height="80" Width="160" 
            MouseEnter="NodeLayoutRoot_MouseEnter" MouseLeave="NodeLayoutRoot_MouseLeave" 
            MouseLeftButtonUp="NodeLayoutRoot_MouseLeftButtonUp" >
        <Rectangle x:Name="Main" RadiusY="25" RadiusX="25" Stroke="Black" Width="140" Height="60" Canvas.Left="10" Canvas.Top="10" Fill="{x:Null}" ></Rectangle>
        <Rectangle x:Name="Right" Visibility="Collapsed" Fill="{x:Null}" Stroke="Black" HorizontalAlignment="Right" Width="10" Canvas.Top="35" Height="10" Canvas.Left="150" 
                   MouseEnter="ConnectionPoint_MouseEnter" MouseLeave="ConnectionPoint_MouseLeave" 
                   MouseLeftButtonDown="ConnectionPoint_MouseLeftButtonDown" MouseLeftButtonUp="ConnectionPoint_MouseLeftButtonUp" />
        <Rectangle x:Name="Left" Visibility="Collapsed" Fill="{x:Null}"  Stroke="Black" HorizontalAlignment="Left" Width="10" Height="10" Canvas.Top="35"
                   MouseEnter="ConnectionPoint_MouseEnter" MouseLeave="ConnectionPoint_MouseLeave" 
                   MouseLeftButtonDown="ConnectionPoint_MouseLeftButtonDown" MouseLeftButtonUp="ConnectionPoint_MouseLeftButtonUp" />
        <Rectangle x:Name="Upper" Visibility="Collapsed" Fill="{x:Null}"  Stroke="Black" Height="10" VerticalAlignment="Top" Width="10" Canvas.Left="75"
                   MouseEnter="ConnectionPoint_MouseEnter" MouseLeave="ConnectionPoint_MouseLeave" 
                   MouseLeftButtonDown="ConnectionPoint_MouseLeftButtonDown" MouseLeftButtonUp="ConnectionPoint_MouseLeftButtonUp" />
        <Rectangle x:Name="Lower" Visibility="Collapsed" Fill="{x:Null}" Stroke="Black" Height="10" VerticalAlignment="Bottom" Width="10" Canvas.Left="75" Canvas.Top="70"
                   MouseEnter="ConnectionPoint_MouseEnter" MouseLeave="ConnectionPoint_MouseLeave" 
                   MouseLeftButtonDown="ConnectionPoint_MouseLeftButtonDown" MouseLeftButtonUp="ConnectionPoint_MouseLeftButtonUp" />
        <TextBlock x:Name="StrategyName" TextWrapping="Wrap" Text="Strategy Target" Width="120" TextAlignment="Center" Canvas.Left="20" Canvas.Top="33"/>
        <Canvas.Background>
            <SolidColorBrush />
        </Canvas.Background>
    </Canvas>
</UserControl>
